<%@ taglib prefix="c" 
           uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>          
<%@ page isELIgnored="false" %>
<%@ page errorPage="common/error.jsp" %>
<%@ include file = "common/header.jsp" %>
<h1>Book Info: ${book.title}</h1>

<a href="<c:url value="/book/edit?id=${book.bookId}" />">Edit book</a> <br/></br>
<a href="<c:url value="/book/delete?id=${book.bookId}" />">Delete book</a> <br/></br>
ID:   ${book.bookId} <br/></br>
Name: ${book.title} <br/></br>
 
Author: ${fn:toUpperCase(book.author)}<br/></br>
Publication date: <fmt:formatDate pattern="yyyy-MM-dd" value="${book.publicationDate}" /><br/></br>
Price: ${book.price}<br/></br>
Quantity: ${book.quantity}<br/></br>
Receipt date: <fmt:formatDate pattern="yyyy-MM-dd" value="${book.receiptDate}" /> <br/></br>

<br/></br>
<br/></br>